* babl/babl.h: Don't have BABL_ALPHA_THRESHOLD public yet.
* babl/base/util.h: Put it here for now instead.
svn path=/trunk/; revision=371
+2009-01-17 Martin Nordholts <martinn@svn.gnome.org>
+
+ * babl/babl.h: Don't have BABL_ALPHA_THRESHOLD public yet.
+
+ * babl/base/util.h: Put it here for now instead.
+
2009-01-17 Martin Nordholts <martinn@svn.gnome.org>
Instead of having BABL_CLASS() plus variants and making the macros
*/
#define BABL_MAGIC 0xbab100
-/* Alpha threshold used in the reference implementation for
- * un-pre-multiplication of color data:
- *
- * 0.01 / (2^16 - 1)
- */
-#define BABL_ALPHA_THRESHOLD 0.000000152590219
-
enum {
BABL_INSTANCE = BABL_MAGIC,
BABL_TYPE,
#include <assert.h>
#include <math.h>
+/* Alpha threshold used in the reference implementation for
+ * un-pre-multiplication of color data:
+ *
+ * 0.01 / (2^16 - 1)
+ */
+#define BABL_ALPHA_THRESHOLD 0.000000152590219
+
#define BABL_PLANAR_SANITY \
{ \
assert(src_bands>0); \